/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/ceping/cepinghzglbhz/page',
    method: 'get',
    params: query
  })
}
// 票3 预览列表
// /jxEvalTJ/cppPage
export function fetchList2(query) {
  return request({
    url: '/ceping/jxEvalTJ/page',
    method: 'get',
    params: query
  })
}
//
export function cppPage(query) {
  return request({
    url: '/ceping/jxEvalTJ/cppPage',
    method: 'get',
    params: query
  })
}
// 票5(表一) 统计
export function getData4P5one(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P5one',
    method: 'get',
    params: query
  })
}
// 票5(表一) 统计 详情
export function getData4P5oneDetail(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P5oneDetail',
    method: 'get',
    params: query
  })
}
// 票5(表一) 统计3 详情
export function getData4P5threeDetail(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P5threeDetail',
    method: 'get',
    params: query
  })
}
// 票5(表二) 统计
export function getData4P5two(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P5two',
    method: 'get',
    params: query
  })
}
// 票5(表二) 统计
export function getData4P5three(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P5three',
    method: 'get',
    params: query
  })
}
// 票3 统计
export function getData4P3(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P3',
    method: 'get',
    params: query
  })
}
// 票3 明细
export function getData4P3Detail(query) {
  return request({
    url: '/ceping/jxEvalTJ/getData4P3',
    method: 'get',
    params: query
  })
}
// 票4 统计
export function getData4P4(query) {
  return request({
    url: 'ceping/jxEvalTJ/getData4P4',
    method: 'get',
    params: query
  })
}
export function addObj(obj) {
  return request({
    url: '/ceping/cepinghzglbhz',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/ceping/cepinghzglbhz/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/ceping/cepinghzglbhz/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/ceping/cepinghzglbhz',
    method: 'put',
    data: obj
  })
}

/**
 * 获取汇总结果
 * @param id
 * @returns {*}
 */
export function hzInfo(id) {
  return request({
    url: '/ceping/cepinghzglbhz/hzInfo/'+id,
    method: 'get'
  })
}

/**
 * 获取汇总结果
 * @param id
 * @returns {*}
 */
export function hzInfo2(id) {
  return request({
    url: '/ceping/cepinghzglbhz/hzInfo2/'+id,
    method: 'get'
  })
}

